﻿using DevExpress.XtraSplashScreen;
using System;
using XCI.Helper;

namespace XCI.Sys.Forms
{
    public partial class FrmImageSplashScreen : SplashScreen
    {
        public FrmImageSplashScreen()
        {
            InitializeComponent();
        }

        public override void ProcessCommand(Enum cmd, object arg)
        {
            base.ProcessCommand(cmd, arg);
            var command = (SplashCommand)cmd;
            if (command == SplashCommand.ShowMessage)
            {
                string msg = arg == null ? string.Empty : arg.ToString();
                lblCaption.Text = msg;
            }
        }
    }
}
